package com.example.javadesign.prototype.shallow;

import com.example.javadesign.prototype.general.IPrototype;
import lombok.Data;

import java.util.List;

/**
 * @author 陳樂
 * @version 1.0.0
 * @ClassName ConcretePrototype.java
 * @Description TODO
 * @createTime 2022年08月21日 20:30:00
 */
@Data
public class ConcretePrototype  implements Cloneable {

    private int age;

    private String name;

    private List<String> hobbies;

    @Override
    public ConcretePrototype clone() {
        try {
            return (ConcretePrototype) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return null;
    }

}
